package top.asked.wdy_cdftx_app.api;


import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public class JsonData extends WebData {
    private static final String BASE_URL = "http://www.cdftx.com/";
    private static final String EXTENSION = "android/";
    private static final String ANDROIDKEY = "&androidkey=E2085BB0-7D11-414C-B5BC-530909FB076A";
    
    public JSONObject getObject(String sbj) throws JSONException, Exception {
        return new JSONObject(getRequest(BASE_URL + EXTENSION + sbj + ANDROIDKEY));
    }

    public JSONArray getArray(String sbj) throws JSONException, Exception {
        return new JSONArray(getRequest(BASE_URL + EXTENSION + sbj + ANDROIDKEY));
    }
}